<?php


namespace app\applet\controller;


use app\BaseController;

class Index extends BaseController
{
    public function  getData(){
        $bannerList=array(
            "type"=>"carousel",
            "list"=>[
               array("img"=>"http://www.zaozaopay.com/static/img/b1.png","model"=>"local","bindRoomStatus"=>false,
                   "path"=>"/pages/bill/query"),
                array("img"=>"http://www.zaozaopay.com/static/img/b1.png","model"=>"link",
                    "url"=>""),
              ],
            "style"=>array("marginTop"=>0,"height"=>"300rpx")
        );
        $menuSingleOne=array(
            "type"=>"menuSingleOne",
            "data"=>array("title"=>"停车服务"),
            "style"=>array("marginTop"=>0)
        );
        $menu=array(
            "type"=>"menu4x",
            "list"=>[
                array("title"=>"报事报修","model"=>"local","img"=>"http://www.zaozaopay.com/static/img/repairs.png",
                    "path"=>"/pages/main/maintenance/maintenance?id=0","url"=>"/pages/car/monthlyRental/list","bindRoomStatus"=>false,"hasLogin"=>true),
                array("title"=>"业主投诉","model"=>"local","img"=>"http://www.zaozaopay.com/static/img/complain.png",
                    "path"=>"/pages/main/maintenance/maintenance?id=1","url"=>"/pages/car/welfare/list","bindRoomStatus"=>false,"hasLogin"=>true),
                array("title"=>"我的房屋","model"=>"local","img"=>"http://www.zaozaopay.com/static/img/announcement.png",
                   "path"=>"/pages/user/my-house/my-house","url"=>"/pages/login/bindRoom","bindRoomStatus"=>false,"hasLogin"=>true),
                array("title"=>"联系物业","model"=>"local","img"=>"http://www.zaozaopay.com/static/img/call-ten.png",
                    "appid"=>"2019032863710519","path"=>"/pages/car/release/index","bindRoomStatus"=>true,),
                array("title"=>"物业缴费","model"=>"local","img"=>"http://www.zaozaopay.com/static/img/tenement.png",
                    "appid"=>"2019032863710519","path"=>"/pages/main/est-pay/choose-type",'bindRoomStatus'=>true,"hasLogin"=>true),
             ]
        );


        $menuSingleOne4=array(
            "type"=>"menuSingleOne",
            "data"=>array("title"=>"购物游玩出行"),
            "style"=>array("marginTop"=>0)
        );

       

        
        $res["code"]=0;
        $res["data"]=[$bannerList,$menu];
        
        return json($res);
    }
}